package com.example.pfe_copie_finale;


import com.example.pfe_copie_finale.DatePickerExample;
import com.example.pfe_copie_finale.R;

import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;
import android.view.Menu;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class Commerciale extends Activity implements OnClickListener{
	Button liste = null;
	Button client = null;
	Button bl = null;
	Button bc = null;
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.interface_commerciale);
		liste= (Button)findViewById(R.id.liste);
		liste.setOnClickListener(this);
		client= (Button)findViewById(R.id.client);
		client.setOnClickListener(this);
		bl= (Button)findViewById(R.id.bl);
		bl.setOnClickListener(this);
		bc= (Button)findViewById(R.id.bc);
		bc.setOnClickListener(this);
		
	}
	@Override
	public void onClick(View v) {
		if(v == liste){
			Intent monIntent = new Intent(this,ListeClient.class);
	  	      startActivity(monIntent);}
	  		else{
	  			if(v == client){
	  				Intent monIntent = new Intent(this,NewClientActivity.class);
	  		  	      startActivity(monIntent);}
		
	
		else{
  			if(v == bl){
  				Intent monIntent = new Intent(this,BonLivraison1.class);
  		  	      startActivity(monIntent);}

  			else{
  	  			if(v == bc){
  	  				Intent monIntent = new Intent(this,BonCommande.class);
  	  		  	      startActivity(monIntent);}
  	  			
  			
	
}
	  			

	
	  		}
	}
	}}
